import request from '@/utils/clientRequest.js'
let host = '/academy'
//选科选课目
export const getUsage =(userType) => {
  return request.post(host+'/curricula/getUsage?userType='+userType)
}
export const getAcademys =(obj) => {
  return request.post(host+'/curricula/getAcademys',obj)
}
export const getDemand =(obj) => {
  return request.post(host+'/curricula/getDemand',obj)
}
export const getMajorStair =() => {
  return request.post(host+'/curricula/getMajorStair')
}
export const getMajorSecond =(obj) => {
  return request.post(host+'/curricula/getMajorSecond',obj)
}
export const getMajors =(obj) => {
  return request.post(host+'/curricula/getMajors',obj)
}
export const getSubjectMajor =() => {
  return request.post(host+'/curricula/getSubjectMajor')
}
export const getAdvantageUsage =(userType) => {
  return request.post(host+'/curricula/getAdvantageUsage?userType='+userType)
}
export const getSchemeRecord =(userType) => {
  return request.post(host+'/curricula/getSchemeRecord?userType='+userType)
}
export const saveMajor =(majoring,userType) => {
  return request.post(host+'/curricula/saveMajor?majoring=' + majoring +'&userType=' + userType)
}
export const verification =(obj) => {
  return request.post(host+'/curricula/verification',obj)
}
export const getReport =(userType) => {
  return request.post(host+'/curricula/getReport?userType='+userType)
}
export const getEvaluation =(userType) => {
  return request.post(host+'/curricula/getEvaluation?userType='+userType)
}
export const createReport =(obj) => {
  return request.post(host+'/curricula/createReport',obj)
} 
export const returnScheme =(obj) => {
  return request.post(host+'/curricula/returnScheme',obj)
} 
export const createScheme =(obj) => {
  return request.post(host+'/curricula/createScheme',obj)
} 
export const getSchemeRecordResult =(id) => {
  return request.post(host+'/curricula/getSchemeRecordResult?id='+id)
}
export const getChooseProvince =(province) => {
  return request.post(host+'/curricula/getChoose?province='+province)
}
